'use strict';
var path = require("path")
module.exports = appInfo => {
  const config = exports = {};
  config.keys = appInfo.name + '_11211121';
  config.HOST = "https://m.tl100.com";
  config.APPID = "wxd39df45bb10eaba1";
  config.USER_INFO = "snsapi_userinfo";
  // config.mysql = {
  //       client: {
  //           host: 'locahost',
  //           port: '3306',
  //           user: 'root',
  //           password: '',
  //           database: 'test',
  //       },
  //       app: true,
  //       agent: false,
  //   };
  config.view = {
      defaultViewEngine: 'ejs',
      ejs: {
          cache: true,
      }
  };
  config.logger = {
      dir: path.join(__dirname,"../logs/Logger"),       //设置默认日志目录
  };
  config.static={
      prefix:"/",
      dir: path.join(__dirname,"../app/public/pro")
  }
  return config;
};
